<?php
/**
 * Created by PhpStorm.
 * User: chengchaogui
 * Date: 2017/8/11
 * Time: 10:50
 */

namespace App\Repository\Contract;


interface IRzjhpLog
{
    /**
     * 保存操作日志
     * @param $manager_id
     * @param $username
     * @param $handle_ip
     * @param $handle_url
     * @param $level
     * @param $description
     * @param $handle_time
     * @return mixed
     */
    public function storeHandleLog($manager_id, $username, $handle_ip, $handle_url, $level, $description, $handle_time);

    /**
     * 获取操作日志
     * @param $form
     * @return mixed
     */
    public function getHandleLog($form);

    /**
     * 保存登录日志
     * @param $manager_id
     * @param $username
     * @param $result
     * @param $login_ip
     * @param $login_time
     * @return mixed
     */
    public function storeLoginLog($manager_id, $username, $result, $login_ip, $login_time);

    /**
     * 获取登录日志
     * @param $form
     * @return mixed
     */
    public function getLoginLog($form);
}